import request from '@/utils/request'

export function getList(pageNum, pageSize, parentId) {
    return request({
      url: '/web/courseClass/getPage',
      method: 'get',
      params: { pageNum, pageSize, parentId }
    })
}

export function add(data) {
  return request({
      url: 'web/courseClass/add',
      method: 'post',
      data
  })
}

export function del(id) {
  return request({
      url: 'web/courseClass/del/' + id,
      method: 'DELETE'
  })
}
///dev-api/web/courseClass/del/{id}